package exception;

import be.kuleuven.cs.som.annotate.Basic;

public class NegativeAmountException extends RuntimeException {
	
	private static final long serialVersionUID = 1L;

	/**
	 * Creates a overflow exception.
	 * 
	 * @param number The number class for with this exception is been created
	 * @param message The message of this exception
	 */
	public NegativeAmountException(Double value, String message) {
		super(message);
		this.value = value;
	}
	
	/**
	 * Returns the message with this overflow exception.
	 */
	public String getMessage() {
		return super.getMessage();
	}
	
	@Basic
	public Double getValue() {
		return value;
	}
	
	private Double value;

	

}
